﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Spring.Objects.Factory.Support;
using System.Reflection;

namespace SpringNet_MethodDi
{

    public class UserDao
    {
        //虚方法
        public virtual string GetValue(string input)
        {
            return null;
        }
    }

    //实现IMethodReplacer接口
    public class ReplaceValue : IMethodReplacer
    {
        public object Implement(object target, MethodInfo method, object[] arguments)
        {
            string value = (string)arguments[0];
            return "获取到：" + value;
        }
    }
}
